<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="a_vuejs/vue.global.js"></script>

</head>
<body>

<div id="app">
    <h3>template:可以在template上放任何vue命令</h3>
    <template v-if="isOK">
        <span>这里是template演示</span>
    </template><br/>

    <template v-for="id in ids">
        <span v-text="id"></span><br/>
    </template>
    <span v-for="id in ids" v-text="id"></span><br/>
</div>

</body>

<script>
    Vue.createApp({
        data() {
            return {
                isOK:true,
                ids:[1,2,3,4,5]
            }
        },
        methods: {}
    }).mount("#app")
</script>

</html>